<div class="body">
    <div style="float: right">
        <button ng-if="canEdit" class="btn btn-info" style="line-height: 1;width: 115px;margin-right: 15px" ng-click="createOwner()">添加拥有者</button>
    </div>

    <div class="table-body">
        <table class="datatable table table-hover dataTale">
            <thead>
            <tr>
                <th>#</th>
                <th>姓名</th>
                <th>性别</th>
                <th>联系方式</th>
                <th>角色</th>
                <th ng-if="canEdit">操作</th>
            </tr>
            </thead>
            <tbody ng-repeat="item in friendList" ng-dblclick="selectOne(item)" style="border-top: 1px solid #dddddd;">
            <tr ng-show="!item.notEO">
                <td>{{$index+1}}</td>
                <td>{{item.name}}</td>
                <td>{{item.gender===0?'女':item.gender===1?'男':'未知'}}</td>
                <td>{{item.phone}}</td>
                <td><button class="btn btn-xs {{item.isResponse?'btn-warning':'btn-success'}}">{{item.isResponse?'负责人':'拥有者'}}</button></td>
                <td ng-if="canEdit">
                    <button ng-hide="item.isResponse" ng-click="removeEO(item)" class="btn btn-xs btn-danger">移除</button>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>